contents = '''<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN>
<html>
<head>
        <meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
        <title>Hello</title>
</head>
<body bgcolor="FFCCFF">
	<div style="font-weight: bold;font-size: 22pt;" 
align="center">Welcome to<br><font style="font-size: 30pt;color: blue;">V</font>oice <font 
style="color: blue;font-size:
30pt;">A</font>ppointment <font style="color: blue;font-size: 30pt;">T</font>racking <font 
style="font-size: 
30pt;color: blue;">S</font>ystem</div>
</body>
</html>
'''

def strToFile(text,filename):
        """Write a file with the given name and given text."""
        output = file(filename,"w")
        output.write(text)
        output.close()

def browseLocal(webpageText, filename):
        """Start your webbrowser on a local file containing the text."""
        strToFile(webpageText, filename)
        import webbrowser
        webbrowser.open(filename)

def main():
        browseLocal(contents,'vatsindex.html')

main()

